load('../src/ph/ph.js');

ph.bootstrap('settings.js');
ph.keepRunning();

dojo.require('ph.bluetooth');

scanner = ph.bluetooth.scanner();
scanner.onAppear = scanner.onDisappear = function(evt) {
  print(evt.type + ', id: ' + evt.id + ', name: ' + evt.name);
};
scanner.onInquiryStart = scanner.onInquiryEnd = function(evt) {
  print(evt.type);
};

scanner.run(10000);